package com.zixuan.gulicollege.eduservice.service;


import com.baomidou.mybatisplus.extension.service.IService;
import com.zixuan.gulicollege.entity.eduservice.EduChapter;
import com.zixuan.gulicollege.entity.eduservice.vo.ChapterVO;

import java.util.List;

/**
 * <p>
 * 课程 服务类
 * </p>
 *
 * @author zixuan
 * @since 2021-05-08
 */
public interface EduChapterService extends IService<EduChapter> {

    /**
     * 课程大纲列表，通过课程id进行查询
     * @param courseId
     * @return
     */
    List<ChapterVO> getChapterVideoByCourseId(String courseId);

    /**
     * 删除章节
     * @param chapterId
     */
    boolean deleteChapter(String chapterId);

    /**
     * 根据课程id删除章节
     * @param id
     */
    void removeChapterByCourseId(String id);
}
